﻿using Basic.FlowCollect;
using Basic.FlowRemoteModel.NodeFormPower.Model;
using Basic.FlowService.Interface;

namespace Basic.FlowService.lmpl
{
    internal class NodeFormPowerService : INodeFormPowerService
    {
        private readonly INodeFormPowerCollect _Service;

        public NodeFormPowerService ( INodeFormPowerCollect service )
        {
            this._Service = service;
        }
        public FormColPower[] Gets ( long nodeId )
        {
            return this._Service.Gets(nodeId);
        }
        public void Sync ( long flowId, long nodeId, FormColPower[] powers )
        {
            this._Service.Sync(flowId, nodeId, powers);
        }
    }
}
